<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <script src="./js/axios-0.20.0.js"></script>
  <script src="./js/qs-6.9.4.js"></script>
</head>
<body>
  <script>
    // 创建axios实例 并且设置默认值
    let instance =axios.create({
      method:'post',
      headers:{
        // 'Content-Type':'application/x-www-form-urlencoded;charset=UTF-8'
        'Auth':'token123'
      },
      timeout:2000,
      // 基础路径
      baseURL: 'http://121.199.0.35:8888'
    });
    // instance.get('/index/carousel/findAll');
    instance('/index/carousel/findAll');
  </script>
</body>
</html>